package com.kommii.test;

import java.util.Date;
import java.util.List;

import com.hddf.project.auth.pojos.Authority;
import com.hddf.project.auth.service.AuthService;
import com.hddf.project.auth.service.MongoDB_Query;
import com.hddf.project.auth.service.MongoDB_Sync;
import com.mongodb.DBObject;

public class test4 {

	public static void main(String[] args) {
		MongoDB_Query mq = MongoDB_Query.getInstance();
		MongoDB_Sync ms = MongoDB_Sync.getInstance();
		AuthService as = AuthService.getInstance();
		Authority auth = new Authority();
		Date date = new Date();
		auth.setIsleaf(1);
		auth.setName("yy");
		auth.setSort(8);
		auth.setUpdate_time(date);
		auth.setUrl("fgfg");
		auth.setState(1);
		auth.setUserid(1);
		auth.setUsername("zhbgreat");
		as.addAuth(auth);
		
		List<DBObject> list = mq.getUserList("0", "10", -1);
		

	}

}
